import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/api/v1/sale/findBrand',
    method:'post',
    params:params
  })
}

export function updateRecommendStatus(data) {
  return request({
    url:'/api/v1/sale/updateHomeBrand',
    method:'post',
    data:data
  })
}

export function deleteHomeBrand(data) {
  return request({
    url:'/api/v1/sale/deleteHomeBrand',
    method:'post',
    data:data
  })
}

export function createHomeBrand(data) {
  return request({
    url:'/api/v1/sale/addHomeBrand',
    method:'post',
    data:data
  })
}

export function updateHomeBrandSort(params) {
  return request({
    url:'/api/v1/sale/updateHomeBrand',
    method:'post',
    params:params
  })
}
